/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.uc.dao;

import java.util.Collection;
import java.util.List;

import com.xy.biz.uc.domain.po.UserRoleRelPO;

/**
 * 
 * 
 * @author zsp
 * @date 2020-8-19
 */
public interface UserRoleRelDao {
	
	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllUserRoleRel(Collection<UserRoleRelPO> collection);
	
	/**
	 * 删除
	 *
	 * @param userId
	 */
	int deleteUserRoleRelByUserId(Long userId);

	/**
	 * 删除
	 *
	 * @param roleId
	 */
	int deleteUserRoleRelByRoleId(Long roleId);
	
	/**
	 * 查找多条
	 *
	 * @param collection 
	 * @return
	 */
	List<UserRoleRelPO> listUserRoleRelByUserId(Collection<Long> collection);

	/**
	 * 查找多条
	 *
	 * @param collection
	 * @return
	 */
	List<UserRoleRelPO> listUserRoleRelByRoleId(Collection<Long> collection);
	
}
